class User < ApplicationRecord
    has_many :microposts
    
    validates :number,  presence: true, length: { maximum: 10 },
                    uniqueness: true    
    validates :name, presence: true, length: { maximum: 255 }

    has_secure_password
    validates :password, presence: true, length: { minimum: 6 }
end
